package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单商品对象 tb_order_goods
 * 
 * @author ruoyi
 * @date 2022-06-16
 */
public class TbOrderGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long oitId;

    /** 订单号 */
    @Excel(name = "订单号")
    private Long orderId;

    /** 书籍id */
    @Excel(name = "书籍id")
    private Long bookId;

    /** 书籍id */
    @Excel(name = "书籍名称")
    private String bookName;

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long pNum;

    /** 删除字段 */
    @Excel(name = "删除字段")
    private String isDel;


    /** 用户ID */
    @Excel(name = "删除字段")
    private long userId;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public void setOitId(Long oitId)
    {
        this.oitId = oitId;
    }

    public Long getOitId() 
    {
        return oitId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setpNum(Long pNum)
    {
        this.pNum = pNum;
    }

    public Long getpNum()
    {
        return pNum;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("oitId", getOitId())
            .append("orderId", getOrderId())
            .append("bookId", getBookId())
                .append("userId", getUserId())
            .append("bookName", getBookName())
            .append("pNum", getpNum())
            .append("isDel", getIsDel())
            .toString();
    }
}
